package com.nian.hbase.simple.model;

import com.nian.hbase.base.aop.HbaseColumn;
import com.nian.hbase.base.aop.HbaseId;
import com.nian.hbase.base.aop.HbaseTable;
import lombok.Data;

/**
 * @author zhangmj
 * @date 2020/4/23 16:22
 */
@Data
@HbaseTable(tableName = "userModel")
public class UserModel {

    public UserModel() { }

    public UserModel(String name, String code, String mobilePhone, String loginName, String password, String loginTime) {
        this.name = name;
        this.code = code;
        this.mobilePhone = mobilePhone;
        this.loginName = loginName;
        this.password = password;
        this.loginTime = loginTime;
    }
    @HbaseId
    private String id;

    @HbaseColumn(family = "baseInfo", qualifier = "name")
    private String name;

    @HbaseColumn(family = "baseInfo", qualifier = "code")
    private String code;

    @HbaseColumn(family = "baseInfo", qualifier = "mobilePhone")
    private String mobilePhone;


    @HbaseColumn(family = "loginInfo", qualifier = "loginName")
    private String loginName;

    @HbaseColumn(family = "loginInfo", qualifier = "password")
    private String password;

    @HbaseColumn(family = "loginInfo", qualifier = "loginTime")
    private String loginTime;



}
